package cn.yumei.lifepay.manager.imp;

import net.sf.json.JSONObject;

import org.springframework.stereotype.Service;

import cn.yumei.lifepay.manager.EbppManager;
import cn.yumei.lifepay.util.Global;
import cn.yumei.lifepay.util.ThirdPartyService_yumei;


@Service
public class EbppManagerImp implements EbppManager{

	@Override
	public JSONObject getBill(JSONObject searchCondition) {
		JSONObject result = null;
		//API的方法名
		String method = Global.EBPP_BILL_GET;
		//处理请求并返回JSON结果
		result = ThirdPartyService_yumei.getServiceResponse(method,searchCondition);
		return result;
	}

	@Override
	public JSONObject createBillOrder(JSONObject orderInfo) {
		JSONObject result = null;
		//API的方法名
		String method = Global.EBPP_BILL_ORDER_CREATE;
		//处理请求并返回JSON结果
		result = ThirdPartyService_yumei.getServiceResponse(method,orderInfo);
		return result;
	}

	@Override
	public JSONObject getCity(JSONObject searchCondition) {
		JSONObject result = null;
		//API的方法名
		String method = Global.EBPP_CITY_GET;
		//处理请求并返回JSON结果
		result = ThirdPartyService_yumei.getServiceResponse(method,searchCondition);
		return result;
	}

	@Override
	public JSONObject getCompanyFare(JSONObject searchCondition) {
		JSONObject result = null;
		//API的方法名
		String method = Global.EBPP_COMPANY_FARE_GET;
		//处理请求并返回JSON结果
		result = ThirdPartyService_yumei.getServiceResponse(method,searchCondition);
		return result;
	}

	@Override
	public JSONObject getCompany(JSONObject searchCondition) {
		JSONObject result = null;
		//API的方法名
		String method = Global.EBPP_COMPANY_GET;
		//处理请求并返回JSON结果
		result = ThirdPartyService_yumei.getServiceResponse(method,searchCondition);
		return result;
	}

	@Override
	public JSONObject getProvince(JSONObject searchCondition) {
		JSONObject result = null;
		//API的方法名
		String method = Global.EBPP_PROVINCE_GET;
		//处理请求并返回JSON结果
		result = ThirdPartyService_yumei.getServiceResponse(method,searchCondition);
		return result;
	}

}
